<template>
	<div id="app" v-if="config.template_color>=0">
		<wxMoren v-if="iswx"></wxMoren>
		<router-view v-else></router-view>
	</div>
	
</template>

<script>
	// import layout from './views/layout.vue'
	import wxMoren from './components/moren.vue'
	export default {
		name: 'app',
		components: {
			// layout,
			wxMoren
		},
		data() {
			return {
				iswx: 0,
				condition:false,
				
				config:{
					
				},
				rootVariables:{
					'--vh':' 13.34px',
					'--theme-rem-unit':' 100',
					'--theme-header-height':' 0.8rem',
					'--theme-header-height2':' 1.4rem',
					'--theme-side-width':' 240',
					'--theme-scroll-bar-bg-color':'var(--theme-color-line)',
					'--theme-filter-active-color':'#FACF20',
					'--theme-main-bg-color':' #21674b',
					'--theme-main-bg-color-hex':' 242,109,10',
					'--theme-bg-color':' #1e4b37',
					'--theme-table-bg-color':' #21674b',
					'--theme-disabled-bg-color':' #999',
					'--theme-countTo-bg':' #f6faff',
					'--theme-ant-message-bg':' #FFF',
					'--theme-bg-shadow':' rgba(0, 0, 0, 0.06)',
					'--theme-load-bg-color':' #FFA56166',
					'--theme-home-bg-color':' 242,109,10',
					'--theme-primary-color':' #fccf1e',
					'--theme-primay-color-hex':' 83,31,14',
					'--theme-primary-font-color':' #FFFFFF',
					'--theme-disabled-font-color':' #fff',
					'--theme-ant-message-font-color':' #333333',
					'--theme-aside-icon-color-0':' #fff',
					'--theme-aside-icon-color-1':' #fff',
					'--theme-aside-icon-color-2':' #666',
					'--theme-aside-font-color':' #fff',
					'--theme-aside-active-font-color':' #fff',
					'--theme-aside-active-bg-color-0':' #FFFFFF0A',
					'--theme-aside-active-bg-color-1':' #FFFFFF0D',
					'--theme-aside-box-shadow':' 0 0.02rem 0.04rem 0 rgba(0, 0, 0, 0.3)',
					'--theme-aside-no-active-box-shadow':' #0000001F',
					'--theme-jackpot-bg-color-0':' #fff',
					'--theme-jackpot-bg-color-1':' #edf3fd',
					'--theme-jackpot-num-bg-color-0':' #c9d2df',
					'--theme-jackpot-num-bg-color-1':' #f5f8fe',
					'--theme-jackpot-num-bg-color-2':' #c9d2df',
					'--theme-jackpot-num-bg-shadow-color-0':' #fff6',
					'--theme-jackpot-num-bg-shadow-color-1':' #fff6',
					'--theme-jackpot-title-color':' #FFFFFF',
					'--theme-game-lobby-border':' #FFA561',
					'--theme-search-icon-color':' #fff',
					'--theme-btm-def-color':'#fff',
					'--theme-btm-bg-color':' #F2760C',
					'--theme-mine-icon-color':' #fbce1f',
					'--theme-hx-color':' #FFFFFF',
					'--theme-text-color-darken':' #FFFFFF',
					'--theme-text-color':' #fff',
					'--theme-text-color-lighten':' #fff',
					'--theme-text-color-lighten-withshadow':' #fff',
					'--theme-text-color-placeholder':' #fff',
					'--theme-text-color-task-btn':' #fff',
					'--theme-text-color-process-text':' #fff',
					'--theme-text-color-activities-text':' #fff',
					'--theme-text-color-side-tabs':' #fff',
					'--theme-alt-text-color':' #FFFFFF',
					'--theme-text-person-color':' #fff',
					'--theme-color-line':' #2a815f',
					'--theme-color-line-hex':' 255,165,97',
					'--theme-active-bg-color':' #FC8521',
					'--theme-active-gou-color':' #298060',
					'--theme-cardBg-color':' rgba(7, 112, 255, 0.8)',
					'--theme-cardShadow-mask-color':' rgba(254, 255, 255, 0.9)',
					'--theme-cardShadow-font-color':' #fff',
					'--theme-progress-line-color':' #fff',
					'--theme-text-color-darken-hex':' 255,255,255',
					'--theme-secondary-color-success':' #f5f60c',
					'--theme-secondary-color-success-linear-gradient':' #f5f60c',
					'--theme-secondary-color-success-text':' #fff',
					'--theme-secondary-color-error':' #DF230E',
					'--theme-secondary-color-error-linear-gradient':' #f35a4a',
					'--theme-secondary-color-finance':' #FFAA09',
					'--theme-secondary-color-finance-linear-gradient':' #ffb325',
					'--theme-secondary-color-tabs-start-gradient':' #fff',
					'--theme-secondary-color-tabs-end-gradient':' #f2f3f7',
					'--theme-secondary-color-tabs-active-start-gradien':' #46a1ff',
					'--theme-secondary-color-tabs-active-end-gradient':' #1678ff',
					'--theme-secondary-color-tabs-active-border':' transparent',
					'--theme-secondary-color-help-text-color':' #FFFFFF',
					'--theme-label-secondary-color-finance':' #FFAA09',
					'--theme-event-luck-wheel-silver':' #1672f2',
					'--theme-event-luck-wheel-gold':' #ffaa09',
					'--theme-event-luck-wheel-diamond':' #b751ff',
					'--theme-user-card-top-bg-color':' #2c9d6f',
					'--theme-user-card-bg-color':' #773825',
					'--theme-user-card-bottom-bg-color':' #21885b',
					'--theme-vip-progress-bg-color':' #298060',
					'--theme-top-nav-bg':' #21674b',
					'--theme-side-menu-bg-color':' #F2760C',
					'--theme-side-menu-btn-color':' #194c38',
					'--theme-side-menu-btn-color-hex':' 250,131,29',
					'--theme-side-menu-btn-hover':' #FF963C',
					'--theme-side-footer-bg-color':' #21674b',
					'--theme-tabbar-bg-color':' #F2760C',
					'--theme-home-bg':' #21674b',
					'--theme-side-bg-color':' #0f212e',
					'--theme-left-nav-text-color':' #fff',
					'--theme-left-nav-text-active-color':' #FFFFFF',
					'--theme-side-popver-text-color':' #fff',
					'--theme-game-card-ddt_bg':' #F3791E',
					'--theme-game-card-ddt_icon':' #FA8732',
					'--theme-alt-primary':' #298060',
					'--theme-alt-neutral-1':'#fff',
					'--theme-alt-neutral-2':'#fff',
					'--theme-alt-neutral-3':'#f5f60c',
					'--theme-profile_icon_1':' #298060',
					'--theme-profile_icon_2':' #298060',
					'--theme-profile_icon_3':' #298060',
					'--theme-profile_icon_4':' #298060',
					'--theme-web_filter_gou':' #FFFFFF',
					'--theme-aside-active-box-shadow':' 0 0.02rem 0.04rem 0 rgba(0, 0, 0, 0.1)',
					'--vh':' 8.44px',
					'--theme-ant-primary-color-0':' #fff',
					'--theme-ant-primary-color-1':' #643526',
					'--theme-ant-primary-color-2':' #754c3e',
					'--theme-ant-primary-color-3':' #876256',
					'--theme-ant-primary-color-4':' #98796e',
					'--theme-ant-primary-color-5':' #a98f87',
					'--theme-ant-primary-color-6':' #baa59f',
					'--theme-ant-primary-color-7':' #cbbcb7',
					'--theme-ant-primary-color-8':' #ddd2cf',
					'--theme-ant-primary-color-9':' #948f8b',
					'--theme-ant-primary-color-10':' #87776d',
					'--theme-ant-primary-color-11':' #7a5f50',
					'--theme-ant-primary-color-12':' #6e4736',
					'--theme-ant-primary-color-13':' #613220',
					'--theme-ant-primary-color-14':' #298060',
					'--theme-ant-primary-color-15':' #2e0e06',
					'--theme-ant-primary-color-16':' #080201',
					'--theme-ant-primary-color-17':' #000000',
					'--theme-ant-primary-color-18':' #000000',
					'--theme-ant-primary-color-19':' 83, 31, 14',
				},
				rootVariables2:{
					'--vh':' 13.34px',
				'--theme-rem-unit':' 100',
				'--theme-header-height':' 0.8rem',
				'--theme-scroll-bar-bg-color':' var(--theme-color-line)',
				'--theme-filter-active-color':' #f5f60c',
				'--theme-main-bg-color':' #1c8ac1',
				'--theme-main-bg-color-hex':' 0,53,47',
				'--theme-bg-color':' #f5f60c',
				'--theme-table-bg-color':' #1c8ac1',
				'--theme-disabled-bg-color':' #999',
				'--theme-countTo-bg':' #f6faff',
				'--theme-ant-message-bg':' #FFF',
				'--theme-bg-shadow':' rgba(0, 0, 0, 0.06)',
				'--theme-load-bg-color':' #4cabff',
				'--theme-home-bg-color':' 2,78,70',
				'--theme-primary-color':' #f5f60c',
				'--theme-primay-color-hex':' 253,216,128',
				'--theme-primary-font-color':' #004930',
				'--theme-disabled-font-color':' #fff',
				'--theme-ant-message-font-color':' #333333',
				'--theme-aside-icon-color-0':' #fff',
				'--theme-aside-icon-color-1':' #fff',
				'--theme-aside-icon-color-2':' #666',
				'--theme-aside-font-color':' #fff',
				'--theme-aside-active-font-color':' #fff',
				'--theme-aside-active-bg-color-0':' #FFFFFF0A',
				'--theme-aside-active-bg-color-1':' #FFFFFF0D',
				'--theme-aside-box-shadow':' 0 0.02rem 0.04rem 0 rgba(0, 0, 0, 0.3)',
				'--theme-aside-no-active-box-shadow':' #0000001F',
				'--theme-jackpot-bg-color-0':' #fff',
				'--theme-jackpot-bg-color-1':' #edf3fd',
				'--theme-jackpot-num-bg-color-0':' #c9d2df',
				'--theme-jackpot-num-bg-color-1':' #f5f8fe',
				'--theme-jackpot-num-bg-color-2':' #c9d2df',
				'--theme-jackpot-num-bg-shadow-color-0':' #fff6',
				'--theme-jackpot-num-bg-shadow-color-1':' #fff6',
				'--theme-jackpot-title-color':' #FFFFFF',
				'--theme-game-lobby-border':' #4cabff',
				'--theme-search-icon-color':' #fff',
				'--theme-btm-def-color':' #fff',
				'--theme-btm-bg-color':' #1c8ac1',
				'--theme-mine-icon-color':' #f5f60c',
				'--theme-hx-color':' #FFFFFF',
				'--theme-text-color-darken':' #FFFFFF',
				'--theme-text-color':' #fff',
				'--theme-text-color-lighten':' #fff',
				'--theme-text-color-lighten-withshadow':' #fff',
				'--theme-text-color-placeholder':' #049888',
				'--theme-text-color-task-btn':' #fff',
				'--theme-text-color-process-text':' #fff',
				'--theme-text-color-activities-text':' #fff',
				'--theme-text-color-side-tabs':' #fff',
				'--theme-alt-text-color':' #004930',
				'--theme-text-person-color':' #fff',
				'--theme-color-line':' #4cabff',
				'--theme-color-line-hex':' 7,90,81',
				'--theme-active-bg-color':' #024E46',
				'--theme-active-gou-color':' #f5f60c',
				'--theme-cardBg-color':' rgba(7, 112, 255, 0.8)',
				'--theme-cardShadow-mask-color':' rgba(254, 255, 255, 0.9)',
				'--theme-cardShadow-font-color':' #fff',
				'--theme-progress-line-color':' #049888',
				'--theme-text-color-darken-hex':' 255,255,255',
				'--theme-secondary-color-success':' #f5f60c',
				'--theme-secondary-color-success-linear-gradient':' #f5f60c',
				'--theme-secondary-color-success-text':' #fff',
				'--theme-secondary-color-error':' #EA4E3D',
				'--theme-secondary-color-error-linear-gradient':' #f35a4a',
				'--theme-secondary-color-finance':' #FFAA09',
				'--theme-secondary-color-finance-linear-gradient':' #ffb325',
				'--theme-secondary-color-tabs-start-gradient':' #fff',
				'--theme-secondary-color-tabs-end-gradient':' #f2f3f7',
				'--theme-secondary-color-tabs-active-start-gradien':' #46a1ff',
				'--theme-secondary-color-tabs-active-end-gradient':' #1678ff',
				'--theme-secondary-color-tabs-active-border':' transparent',
				'--theme-secondary-color-help-text-color':' #FFFFFF',
				'--theme-label-secondary-color-finance':' #FFAA09',
				'--theme-event-luck-wheel-silver':' #1672f2',
				'--theme-event-luck-wheel-gold':' #ffaa09',
				'--theme-event-luck-wheel-diamond':' #b751ff',
				'--theme-user-card-top-bg-color':' #f5f60c',
				'--theme-user-card-bg-color':' #F4D07B',
				'--theme-user-card-bottom-bg-color':' #D8B76A',
				'--theme-vip-progress-bg-color':' #FFAA09',
				'--theme-top-nav-bg':' #1c8ac1',
				'--theme-side-menu-bg-color':' #1c8ac1',
				'--theme-side-menu-btn-color':' #1b74c8',
				'--theme-side-menu-btn-color-hex':' 2,70,63',
				'--theme-side-menu-btn-hover':' #00574E',
				'--theme-side-footer-bg-color':' #1c8ac1',
				'--theme-tabbar-bg-color':' #1c8ac1',
				'--theme-home-bg':' #f5f60c',
				'--theme-side-bg-color':' #0f212e',
				'--theme-left-nav-text-color':' #fff',
				'--theme-left-nav-text-active-color':' #004930',
				'--theme-side-popver-text-color':' #fff',
				'--theme-game-card-ddt_bg':' #f5f60c',
				'--theme-game-card-ddt_icon':' #024B43',
				'--theme-alt-primary':' #f5f60c',
				'--theme-alt-neutral-1':' #fff',
				'--theme-alt-neutral-2':' #fff',
				'--theme-alt-border':' #fff',
				'--theme-profile_icon_1':' #f5f60c',
				'--theme-profile_icon_2':' #f5f60c',
				'--theme-profile_icon_3':' #f5f60c',
				'--theme-profile_icon_4':' #f5f60c',
				'--theme-web_filter_gou':' #004930',
				'--theme-aside-active-box-shadow':' 0 0.02rem 0.04rem 0 rgba(0, 0, 0, 0.1)',
				'--vh':' 6.67px',
				'--theme-ant-primary-color-0':' #f5f60c',
				'--theme-ant-primary-color-1':' #fddc8d',
				'--theme-ant-primary-color-2':' #fde099',
				'--theme-ant-primary-color-3':' #fee4a6',
				'--theme-ant-primary-color-4':' #fee8b3',
				'--theme-ant-primary-color-5':' #feecc0',
				'--theme-ant-primary-color-6':' #feefcc',
				'--theme-ant-primary-color-7':' #fef3d9',
				'--theme-ant-primary-color-8':' #fff7e6',
				'--theme-ant-primary-color-9':' #fffdf0',
				'--theme-ant-primary-color-10':' #fffcf0',
				'--theme-ant-primary-color-11':' #fffcf0',
				'--theme-ant-primary-color-12':' #fff5d4',
				'--theme-ant-primary-color-13':' #ffe9ab',
				'--theme-ant-primary-color-14':' #f5f60c',
				'--theme-ant-primary-color-15':' #d6b063',
				'--theme-ant-primary-color-16':' #b08a48',
				'--theme-ant-primary-color-17':' #8a6632',
				'--theme-ant-primary-color-18':' #634723',
				'--theme-ant-primary-color-19':' 253, 216, 128',
				},
				rootVariables5:{
					'--vh':' 13.34px',
				'--theme-rem-unit':' 100',
				'--theme-header-height':' 0.8rem',
				'--theme-scroll-bar-bg-color':' var(--theme-color-line)',
				'--theme-filter-active-color':'#7dd354',
				'--theme-main-bg-color':'#1d1d1d',
				'--theme-main-bg-color-hex':' 0,53,47',
				'--theme-bg-color':'#0c0c0c',
				'--theme-table-bg-color':'#1d1d1d',
				'--theme-disabled-bg-color':' #999',
				'--theme-countTo-bg':' #f6faff',
				'--theme-ant-message-bg':' #FFF',
				'--theme-bg-shadow':' rgba(0, 0, 0, 0.06)',
				'--theme-load-bg-color':' #4cabff',
				'--theme-home-bg-color':' 2,78,70',
				'--theme-primary-color':'#7dd354',
				'--theme-primay-color-hex':' 253,216,128',
				'--theme-primary-font-color':' #004930',
				'--theme-disabled-font-color':' #fff',
				'--theme-ant-message-font-color':' #333333',
				'--theme-aside-icon-color-0':' #fff',
				'--theme-aside-icon-color-1':' #fff',
				'--theme-aside-icon-color-2':' #666',
				'--theme-aside-font-color':' #fff',
				'--theme-aside-active-font-color':' #fff',
				'--theme-aside-active-bg-color-0':' #FFFFFF0A',
				'--theme-aside-active-bg-color-1':' #FFFFFF0D',
				'--theme-aside-box-shadow':' 0 0.02rem 0.04rem 0 rgba(0, 0, 0, 0.3)',
				'--theme-aside-no-active-box-shadow':' #0000001F',
				'--theme-jackpot-bg-color-0':' #fff',
				'--theme-jackpot-bg-color-1':' #edf3fd',
				'--theme-jackpot-num-bg-color-0':' #c9d2df',
				'--theme-jackpot-num-bg-color-1':' #f5f8fe',
				'--theme-jackpot-num-bg-color-2':' #c9d2df',
				'--theme-jackpot-num-bg-shadow-color-0':' #fff6',
				'--theme-jackpot-num-bg-shadow-color-1':' #fff6',
				'--theme-jackpot-title-color':' #FFFFFF',
				'--theme-game-lobby-border':'#3f4664',
				'--theme-search-icon-color':' #fff',
				'--theme-btm-def-color':' #fff',
				'--theme-btm-bg-color':'#7dd354',
				'--theme-mine-icon-color':'#7dd354',
				'--theme-hx-color':' #FFFFFF',
				'--theme-text-color-darken':' #FFFFFF',
				'--theme-text-color':' #fff',
				'--theme-text-color-lighten':'#fff',
				'--theme-text-color-lighten-withshadow':' #fff',
				'--theme-text-color-placeholder':' #049888',
				'--theme-text-color-task-btn':' #fff',
				'--theme-text-color-process-text':' #fff',
				'--theme-text-color-activities-text':' #fff',
				'--theme-text-color-side-tabs':' #fff',
				'--theme-alt-text-color':' #004930',
				'--theme-text-person-color':' #fff',
				'--theme-color-line':'#3f4664',
				'--theme-color-line-hex':' 7,90,81',
				'--theme-active-bg-color':' #024E46',
				'--theme-active-gou-color':'#7dd354',
				'--theme-cardBg-color':' rgba(7, 112, 255, 0.8)',
				'--theme-cardShadow-mask-color':' rgba(254, 255, 255, 0.9)',
				'--theme-cardShadow-font-color':' #fff',
				'--theme-progress-line-color':' #049888',
				'--theme-text-color-darken-hex':' 255,255,255',
				'--theme-secondary-color-success':'#7dd354',
				'--theme-secondary-color-success-linear-gradient':'#7dd354',
				'--theme-secondary-color-success-text':' #fff',
				'--theme-secondary-color-error':' #EA4E3D',
				'--theme-secondary-color-error-linear-gradient':' #f35a4a',
				'--theme-secondary-color-finance':' #FFAA09',
				'--theme-secondary-color-finance-linear-gradient':' #ffb325',
				'--theme-secondary-color-tabs-start-gradient':' #fff',
				'--theme-secondary-color-tabs-end-gradient':' #f2f3f7',
				'--theme-secondary-color-tabs-active-start-gradien':' #46a1ff',
				'--theme-secondary-color-tabs-active-end-gradient':' #1678ff',
				'--theme-secondary-color-tabs-active-border':' transparent',
				'--theme-secondary-color-help-text-color':' #FFFFFF',
				'--theme-label-secondary-color-finance':' #FFAA09',
				'--theme-event-luck-wheel-silver':' #1672f2',
				'--theme-event-luck-wheel-gold':' #ffaa09',
				'--theme-event-luck-wheel-diamond':' #b751ff',
				'--theme-user-card-top-bg-color':'#0c0c0c',
				'--theme-user-card-bg-color':' #F4D07B',
				'--theme-user-card-bottom-bg-color':' #D8B76A',
				'--theme-vip-progress-bg-color':' #FFAA09',
				'--theme-top-nav-bg':'#0c0c0c',
				'--theme-side-menu-bg-color':'#1d1d1d',
				'--theme-side-menu-btn-color':'#0c0c0c',
				'--theme-side-menu-btn-color-hex':' 2,70,63',
				'--theme-side-menu-btn-hover':' #00574E',
				'--theme-side-footer-bg-color':'#0c0c0c',
				'--theme-tabbar-bg-color':'#0c0c0c',
				'--theme-home-bg':' #f5f60c',
				'--theme-side-bg-color':' #0f212e',
				'--theme-left-nav-text-color':' #fff',
				'--theme-left-nav-text-active-color':' #004930',
				'--theme-side-popver-text-color':' #fff',
				'--theme-game-card-ddt_bg':' #f5f60c',
				'--theme-game-card-ddt_icon':' #024B43',
				'--theme-alt-primary':' #f5f60c',
				'--theme-alt-neutral-1':' #fff',
				'--theme-alt-neutral-2':' #fff',
				'--theme-alt-border':' #fff',
				'--theme-profile_icon_1':' #f5f60c',
				'--theme-profile_icon_2':' #f5f60c',
				'--theme-profile_icon_3':' #f5f60c',
				'--theme-profile_icon_4':' #f5f60c',
				'--theme-web_filter_gou':' #004930',
				'--theme-aside-active-box-shadow':' 0 0.02rem 0.04rem 0 rgba(0, 0, 0, 0.1)',
				'--vh':' 6.67px',
				'--theme-ant-primary-color-0':' #f5f60c',
				'--theme-ant-primary-color-1':' #fddc8d',
				'--theme-ant-primary-color-2':' #fde099',
				'--theme-ant-primary-color-3':' #fee4a6',
				'--theme-ant-primary-color-4':' #fee8b3',
				'--theme-ant-primary-color-5':' #feecc0',
				'--theme-ant-primary-color-6':' #feefcc',
				'--theme-ant-primary-color-7':' #fef3d9',
				'--theme-ant-primary-color-8':' #fff7e6',
				'--theme-ant-primary-color-9':' #fffdf0',
				'--theme-ant-primary-color-10':' #fffcf0',
				'--theme-ant-primary-color-11':' #fffcf0',
				'--theme-ant-primary-color-12':' #fff5d4',
				'--theme-ant-primary-color-13':' #ffe9ab',
				'--theme-ant-primary-color-14':' #f5f60c',
				'--theme-ant-primary-color-15':' #d6b063',
				'--theme-ant-primary-color-16':' #b08a48',
				'--theme-ant-primary-color-17':' #8a6632',
				'--theme-ant-primary-color-18':' #634723',
				'--theme-ant-primary-color-19':' 253, 216, 128',
				}
			}
		},
		mounted() {
			
			this.isWeChat()
			let share_code = this.getQueryVariable('c')
			if (share_code) {
				localStorage.setItem('share_code', share_code)
			}
			if (document.referrer.indexOf(window.location.host) == -1) {
				localStorage.setItem('reg_share_domain', document.referrer)
			}
			let app = this.getQueryVariable('app')
			if (app) {
				localStorage.setItem('ISAPP', app)
			}

			// 获取当前页面的URL
		const url = window.location.href;
			console.log(url,'地址栏上')
		// 使用正则表达式匹配URL中的invite_code参数值
		const inviteCode = url.match(/[?&]invite_code=([^&]+)/);

		// 如果匹配成功，提取invite_code的值
		if (inviteCode) {
			const inviteCodeValue = inviteCode[1];
			console.log(inviteCodeValue,'invaite参数');
			localStorage.setItem('inviteCodeValue', inviteCodeValue)
		} else {
			console.log('未找到invite_code参数');
		}
						
			let that = this;
				this.$api.ConfigGetConfig({
					key: '',
				}, (res) => {

					if (res.code == 0) {
						that.config=res.data[1].value;

								// 根据条件动态引入不同的 CSS 文件
							const root = document.documentElement;

							// 遍历 rootVariables 对象，更新每个 CSS 变量的值
							for (const [variable, color] of Object.entries(this.rootVariables5)) {
								// console.log('循环变化值')
								// console.log(variable,color)
								root.style.setProperty(variable, color);
							}


						// var template_color=that.config.template_color;
						// if(template_color==2){
						// 	// 根据条件动态引入不同的 CSS 文件
						// 	const root = document.documentElement;

						// 	// 遍历 rootVariables 对象，更新每个 CSS 变量的值
						// 	for (const [variable, color] of Object.entries(this.rootVariables)) {
						// 		// console.log('循环变化值')
						// 		// console.log(variable,color)
						// 		root.style.setProperty(variable, color);
						// 	}
						// }else if(template_color==3){
						// 		// 根据条件动态引入不同的 CSS 文件
						// 		const root = document.documentElement;

						// 		// 遍历 rootVariables 对象，更新每个 CSS 变量的值
						// 		for (const [variable, color] of Object.entries(this.rootVariables2)) {
						// 			// console.log('循环变化值')
						// 			// console.log(variable,color)
						// 			root.style.setProperty(variable, color);
						// 		}
						// }else{
						// 	root.style.setProperty('--theme-main-bg-color', '#F26D0A');
							
						// }
						// window.open(res.data[0].value)
						// that.$router.push('../../index/downloadapp?url=' + res.data[0].value)
					} else {
						// that.$message.error(res.msg);
					}
				})
		

			
		},
		methods: {
			loadLess() {
			const link = document.querySelector('link[rel="stylesheet/less"]');
			link.onload = () => {
				// 当 Less 文件加载完成后重新渲染组件
				this.$forceUpdate();
			};
			},
			isWeChat() {
				let ua = window.navigator.userAgent.toLowerCase();
				if (ua.match(/MicroMessenger/i) == "micromessenger") {
					this.iswx = 1
				}
			},

			// if(isWeChat() == false){
			//     document.querySelector('#share').style.display = 'none'
			//     setTimeout(()=>{window.location.href='https://chat.ptchatab.xyz/chatlink1.html'},100)
			// }else{
			//     document.querySelector('#share').style.display = 'block'
			// }
			getQueryVariable(variable) {
				var query = window.location.search.substring(1);
				var vars = query.split("&");
				for (var i = 0; i < vars.length; i++) {
					var pair = vars[i].split("=");
					if (pair[0] == variable) {
						return pair[1];
					}
				}
				return (false);
			}
		}
	}
</script>

<style lang="less">
		@import url("app.less");
		.messagestyle{
			background-color: var(--theme-bg-color) !important;
			color:#fff !important;
			border: none !important;
		}
		.el-message-box__content{
			color:#fff !important;
		}
</style>